﻿<views:MvxWpfView
    x:Class="Sidvall.WorkItemManager.UI.Wpf.Views.WorkItems.TestWorkItemContextView"
    xmlns:views="clr-namespace:MvvmCross.Wpf.Views;assembly=MvvmCross.Wpf"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
    xmlns:vms="clr-namespace:Sidvall.WorkItemManager.UI.ViewModels.WorkItems;assembly=Sidvall.WorkItemManager.UI"
    xmlns:Controls="clr-namespace:Sidvall.WorkItemManager.UI.Wpf.Controls" 
    xmlns:Converters="clr-namespace:Sidvall.UI.Wpf.Converters;assembly=Sidvall.UI.Wpf" 
    xmlns:local="clr-namespace:Sidvall.WorkItemManager.UI.Wpf.Views.WorkItems"
    mc:Ignorable="d" 
    d:DesignHeight="300" d:DesignWidth="600">

    <Grid d:DataContext="{d:DesignInstance IsDesignTimeCreatable=True, Type={x:Type vms:TestWorkItemContextViewModel}}">
        <StackPanel>
            <Grid Margin="5,5,5,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100" />
                    <ColumnDefinition Width="50" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>

                <Label Content="Loop Count:"/>
                <xctk:IntegerUpDown Grid.Column="1" Minimum="1" Maximum="10" Value="{Binding WorkItemContext.LoopCount}" ClipValueToMinMax="True" ParsingNumberStyle="Integer" 
                                    IsEnabled="{Binding CanEdit}"/>
            </Grid>
        </StackPanel>
    </Grid>
</views:MvxWpfView>
